<template>
  <section>
    <div id="logStr" v-html="logStr"></div>
  </section>
</template>


<script>
  import dao from '../../common/dao'
  import util from '../../common/util'
  export default {
    components: {},
    data() {
      return {
        html: '',
        logStr: ''
      }
    },
    methods: {},
    mounted: function () {
      dao.getTrackingLog( util.fetch("page336") ||{}).then(res => {
        if (res.FX.err) return
        let html = res.body.results||"";
        //let tagOfAs= html.match(/<a(([\s\S])*?)<\/a>/g);
        let parms = html.match(/"\/jobhistory\/logs(([\s\S]*?))"/g)||[];
        parms.map(item=>{
          let newH =  `"${encodeURI(`${window.location.pathname}#/page337?parm=${item}`)}"`
          html = html.replace(/"\/jobhistory\/logs(([\s\S]*?))"/,newH)
        })
        this.logStr = html
      })
    }
  }
</script>

<style scoped>

</style>